package com.talent.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.talent.page.Page;
import com.talent.pojo.TrainPlan;
import com.talent.pojo.User;
import com.talent.vo.TrainPlanVo;

public interface TrainPlanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TrainPlan record);

    int insertSelective(TrainPlan record);

    TrainPlan selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TrainPlan record);

    int updateByPrimaryKey(TrainPlan record);

	List<TrainPlanVo> selectTrainPlanPage(@Param("trainPlan")TrainPlanVo trainPlan, @Param("user")User user, @Param("page")Page<TrainPlanVo> page);

	void deleteAll(String[] ids);

	TrainPlanVo selectVoByPrimaryKey(Integer id);

	void updateStatus(@Param("id")Integer id, @Param("sta")int sta);

	void updateSuggestion(@Param("id")int id, @Param("suggestion")String suggestion);

	int selectLatestTPId();

	int selectCount(@Param("trainPlanName")String trainPlanName);

}